package com.demo.designmode.proxy.dynamic.jdk;

import java.io.IOException;

/**
 * @Author: jxm
 * @Description: jdk 动态代理测试
 * @Date: 2024-1-11 10:50
 * @Version: 1.0
 */
public class Client {

    public static void main(String[] args) throws IOException {
        TrainStation trainStation = new TrainStation();
        ProxyFactory proxyFactory = new ProxyFactory(trainStation);
        SellTickets proxyObject = (SellTickets)proxyFactory.getProxyObject();
        proxyObject.sell();
//        System.in.read();
    }
}
